import request from '@/utils/request'

//业务指南树
export function libraryTree(params) {
  return request({
    url: '/libraryTree/tree/libraryTreeList',
    method: 'get',
    params:{tableName: params}
  })
}
//模板下载、典型案例 树
export function libraryTreeListMore(params) {
  return request({
    url: '/libraryTree/tree/libraryTreeListMore',
    method: 'get',
    params:{tableName: params}
  })
}

//业务指南 查询
export function guideSelectList(query) {
  return request({
    url: '/library/guide/selectList',
    method: 'get',
    params: query
  })
}
// 新增
export function addLibrary(data) {
  return request({
    url: '/library/guide/add',
    method: 'post',
    data: data
  })
}
//详情
export function getGuideDetail(id) {
  return request({
    url: '/library/guide/details?guid=' + id,
    method: 'get'
  })
}
//修改
export function updatelibrary(data) {
  return request({
    url: '/library/guide',
    method: 'put',
    data: data
  })
}
//删除
export function deLlibrary(id) {
  return request({
    url: '/library/guide/' + id,
    method: 'delete'
  })
}